package com.itheima.Demo2;

public class Test2Inner {
    public static void main(String[] args) {
        Outer o = new Outer();
        o.method();
    }
}


class Outer{
    private class Inner{
        public void show(){
            System.out.println("私有内部类");
        }
    }
    public void method(){
        Inner i = new Inner();
        i.show();
    }
}